Skip to main content
Version: 8.4.10.4

StockPrintProbability

V8 Message Definiton

METADATA

AttributeValue
Topic4255-probabilities
MLink TokenStkProbModel
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'
ticker_tsenum - TickerSrcPRI'None'
ticker_tkVARCHAR(12)PRI''
stateModelenum - StateModelPRI'None'
prtPriceFLOAT0
prtSizeINT0
prtProbFLOAT0probability that this print will result in positive PnL
prtSideenum - BuySell'None'
bidPriceFLOAT0nbbo bid price
askPriceFLOAT0nbbo ask price
bidSizeINT0cumulative size bid price
askSizeINT0cumulative size ask price
avgBLink1mFLOAT0average buy link value trailing 10
maeBLink1mFLOAT0buy link value mean abs err trailing 1000
avgSLink1mFLOAT0average sell link value trailing 10
maeSLink1mFLOAT0sell link value mean abs err trailing 1000
avgBLink10mFLOAT0average buy link value trailing 100
maeBLink10mFLOAT0bid link value mean abs err trailing 1000
avgSLink10mFLOAT0average ask link value trailing 100
maeSLink10mFLOAT0ask link value mean abs err trailing 1000
bCounterINT0buy counter
sCounterINT0sell counter
prtTimestampBIGINT0feed timestamp from the packet
netTimestampBIGINT0inbound packet PTP timestamp from SR gateway switch from StockPrint
smsTimestampBIGINT0state model server timestamp just before publish

PRIMARY KEY DEFINITION (Unique)

FieldSequence
ticker_tk1
ticker_at2
ticker_ts3
stateModel4

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgStockPrintProbability` (
`ticker_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`ticker_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`ticker_tk` VARCHAR(12) NOT NULL DEFAULT '',
`stateModel` ENUM('None','M1','M2','M3','M4') NOT NULL DEFAULT 'None',
`prtPrice` FLOAT NOT NULL DEFAULT 0,
`prtSize` INT NOT NULL DEFAULT 0,
`prtProb` FLOAT NOT NULL DEFAULT 0 COMMENT 'probability that this print will result in positive PnL',
`prtSide` ENUM('None','Buy','Sell') NOT NULL DEFAULT 'None',
`bidPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'nbbo bid price',
`askPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'nbbo ask price',
`bidSize` INT NOT NULL DEFAULT 0 COMMENT 'cumulative size @ bid price',
`askSize` INT NOT NULL DEFAULT 0 COMMENT 'cumulative size @ ask price',
`avgBLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average buy link value (trailing 10)',
`maeBLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'buy link value mean abs err (trailing 1000)',
`avgSLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average sell link value (trailing 10)',
`maeSLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'sell link value mean abs err (trailing 1000)',
`avgBLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average buy link value (trailing 100)',
`maeBLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'bid link value mean abs err (trailing 1000)',
`avgSLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average ask link value (trailing 100)',
`maeSLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'ask link value mean abs err (trailing 1000)',
`bCounter` INT NOT NULL DEFAULT 0 COMMENT 'buy counter',
`sCounter` INT NOT NULL DEFAULT 0 COMMENT 'sell counter',
`prtTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'feed timestamp from the packet',
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'inbound packet PTP timestamp from SR gateway switch (from StockPrint);',
`smsTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'state model server timestamp (just before publish)',
PRIMARY KEY USING HASH (`ticker_tk`,`ticker_at`,`ticker_ts`,`stateModel`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';

SELECT TABLE EXAMPLE QUERY

SELECT
`ticker_at`,
`ticker_ts`,
`ticker_tk`,
`stateModel`,
`prtPrice`,
`prtSize`,
`prtProb`,
`prtSide`,
`bidPrice`,
`askPrice`,
`bidSize`,
`askSize`,
`avgBLink1m`,
`maeBLink1m`,
`avgSLink1m`,
`maeSLink1m`,
`avgBLink10m`,
`maeBLink10m`,
`avgSLink10m`,
`maeSLink10m`,
`bCounter`,
`sCounter`,
`prtTimestamp`,
`netTimestamp`,
`smsTimestamp`
FROM `SRAnalytics`.`MsgStockPrintProbability`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`ticker_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`ticker_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a ENUM('None','M1','M2','M3','M4') */
`stateModel` = 'None';

Doc Columns Query

SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='StockPrintProbability' ORDER BY ordinal_position ASC;